﻿@model IEnumerable<BlogMVC.ModelEntity.Category>
@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml";
}

<h3> Managerment Category</h3>
 <p> @Html.ActionLink("Add", "Create")</p>

<table width=50%>
    <tr><td></td>
        <td><h3>Name</h3></td>

    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.CategoryId }) |
                @Html.ActionLink("Details", "Details", new { id = item.CategoryId }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.CategoryId })
            </td>
            <td>
                @item.ArticleName
            </td>
        </tr>
    }
</table>
